package cn.bgs.service;


import cn.bgs.pojo.Announcement;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 公式公告表(社区活动表) 服务类
 * </p>
 *
 * @author cf
 * @since 2022-06-07
 */
public interface IAnnouncementService extends IService<Announcement> {

    /**
     * 查询所有公告
     * @return
     */
    List<Announcement> getAnnouncement(Integer id);

    List<Announcement> findAll(@Param("id") Integer id,@Param("biaoti") String biaoti,@Param("lei") String lei);

    Boolean deleteById(Integer id);

    Boolean updateById(@Param("id") Integer id,@Param("huod") String huod,@Param("textarea") String textarea,@Param("marketName") String marketName,@Param("qu")Integer qu);

    List<Announcement> findById(@Param("id1")Integer id1, @Param("lei")String lei);
}
